    const imgWidth = []
    const imgHeight = []
    var img = document.querySelectorAll('img')
    img.forEach((e) => {

        imgWidth.push(e.width)
        imgHeight.push(e.height)
    })
    let dangqianWidth = document.body.clientWidth
	function getRem(dangqianWidth){
		
        let bili = dangqianWidth /375
        let width = bili * 1
        let htmls = document.querySelector('html')
        htmls.style.fontSize = width + 'px'
        for (let i = 0; i < imgWidth.length; i++) {
            let imgWidths = imgWidth[i] * bili
            let imgHeights = imgHeight[i] * bili
            img[i].style.width = imgWidths + 'px'
            img[i].style.height = imgHeights + 'px'
        }
	}
	getRem(dangqianWidth)
    window.onresize = function () {
        let dangqianWidth = document.body.clientWidth
        if(dangqianWidth>1000){
            dangqianWidth=1000
        }
       getRem(dangqianWidth)
    }